package com.sanuo.pico.utils;

import com.menu.app.util.port.SerialHandle;

import java.util.concurrent.TimeUnit;

public class MySerialHandle extends SerialHandle {
    public MySerialHandle(int type) {
        super(type);
    }

    public MySerialHandle(int type, long readDelay, TimeUnit unit) {
        super(type, readDelay, unit);
    }

    @Override
    protected void print(Object[] data, int size, String type) {
        if ((byte) data[4] == 0x10 && ((byte) data[5] == 0x33 || (byte) data[5] == 0x35)) {
            return;
        }
        super.print(data, size, type);
    }
}
